#ifndef __Politics_H__
#define __Politics_H__

#include "cocos2d.h"
#include "cocos-ext.h"  
#include "CPublicFuns.h"
USING_NS_CC_EXT;
USING_NS_CC;
using namespace ui;

class CPolitics :
	public cocos2d::CCLayer//,public CCEditBoxDelegate
{
public:
	// Here's a difference. Method 'init' in cocos2d-x returns bool, instead of returning 'id' in cocos2d-iphone
	virtual bool init();  

	// there's no 'id' in cpp, so we recommend returning the class instance pointer
	static cocos2d::Scene* createScene();
	CREATE_FUNC(CPolitics);
protected:
	void InitPoliticsInfo();
	void ShowPoliticsScene(int i);
	void ShowInfo(int i,const char* pszJson);
private:
	Size m_visibleSize;
	Vec2 m_origin;	
};

#endif //__Politics_H__
